package com.common.bean;


/**
 * [description about this class]
 * 数据
 * @author jack
 */
public class InfoResult<T> {

    private int tag;//请求标识
    private int state = -1;
    private String desc = "";
    private T t;
    /**
     * 根据具体业务情况定义
     * 返回状态标示
     * 1:成功
     * -1:失败
     * -4:session失效
     * -1000:网络出错
     */
    private int code;

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
